package leetcode.剑指offer;

public class 在排序数组中查找数字53 {
    public int search(int[] nums, int target) {
        int count = 0;
        for (int i = 0; i < nums.length; i++) {
            int temp = nums[i];
            if(temp > target)
                return count;
            if(temp == target)
                count++;
        }
        return count;

    }
}
